package com.ap.autobase.repository;

import java.io.Serializable;
import java.util.List;

import org.hibernate.criterion.Criterion;

public interface GenericDao<T, Key extends Serializable> {
	
	public void update(T obj);
	
	public T getById(Key id);

	public List<T> getAll();

	public void deleteById(Key id);

	public Key save(T object);

	public List<T> getByParameter(Criterion parameter);

	void delete(T persistentObject);
	
	
}
